@extends('app')

@section('content')
    <div class="layui-card" style="height:100vh;">
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    @component('form.form',['id'=>'form'])

                        @include('form.input',[
                               'label'      => '帖子标题',
                               'name'       => 'cates_id',
                               'class'      => 'layui-col-md12',
                               'readonly'   => true,
                               'val'        => $model->article->title??''
                           ])

                        @include('form.tinymce',[
                                'name'      => 'content',
                                'content'   => $model->content??'',
                                'id'        => 'a_content'
                        ])

                        @include('form.hidden',['name'=>'user_id','val'=>$model->user_id??''])

                        @include('form.submit',['label'=>'立即提交','form'=>'form'])
                    @endcomponent
                </div>
            </div>
        </div>
    </div>
@endsection